<%@ page contentType="text/html;charset=UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext['request'].contextPath}" />
<style type="text/css">
td {
	padding: 5px;
}
</style>
<table>
	<tr>
		<td>昵称：</td><td>${user.nick}</td>
	</tr>
<!-- 	
	<tr>
		<td>头像：</td><td></td>
	</tr>
 -->
	<tr>
		<td>用户名：</td><td>${user.username}</td>
	</tr>
	<tr>
		<td>邮箱：</td>
		<td>
			<c:choose>
				<c:when test="${user.email == null}">没有设置邮箱， 现在去<a href="#safe">完善</a>信息</c:when>
				<c:otherwise>${user.email}</c:otherwise>
			</c:choose>
		</td>
	</tr>
	<tr>
		<td>电话：</td>
		<td>
			<c:choose>
				<c:when test="${user.tel == null}">没有设置电话， 现在去<a href="#safe">完善</a>信息</c:when>
				<c:when test="${user.tel != null}">${user.tel}</c:when>
			</c:choose>
		</td>
	</tr>
	<tr>
		<td>支付宝账号：</td>
		<td>
			<c:choose>
				<c:when test="${user.alipay == null}"><a href="#safe">绑定支付宝</a></c:when>
				<c:otherwise>${user.alipay}</c:otherwise>
			</c:choose>
		</td>
	</tr>
	<tr>
		<td>用户积分：</td><td>${user.score}</td>
	</tr>
	<tr>
		<td>累计节省：</td>
		<td>
			${user.money} <a href="#order_history">查看订单</a>
		</td>
	</tr>
	<tr>
		<td>账户余额：</td>
		<td>
			${user.money_rest} <a href="#money_out_history">查看账单明细</a>
		</td>
	</tr>
	<tr>
		<td>QQ：</td><td>${user.qq}</td>
	</tr>
	<tr>
		<td>性别：</td><td>${user.sex}</td>
	</tr>
	<tr>
		<td>学校：</td><td>${user.school}</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td><a href="#safe" class="btn">修改信息</a></td>
	</tr>
</table>